package com.rm.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.rm.dubbo.demo.api.AnnotationDemoApi;
import org.springframework.stereotype.Component;

/**
 * @ProjectName: dubbo-annotation-parent
 * @Auther: GERRY
 * @Date: 2019/1/16 15:03
 * @Description:
 */
@Service(protocol = "hessian")
@Component
public class AnnotationProvider implements AnnotationDemoApi {
    @Override
    public String doLogin(String account, String password) {
        return "输入账号:"+account+",密码:"+password+" 成功登陆系统";
    }
}
